package com.genshang.restaurant.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.genshang.restaurant.entity.Accumulatelisttable;
import com.genshang.restaurant.result.ResultBody;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author Alex
 * @since 2020-09-25
 */
public interface IAccumulatelisttableService extends IService<Accumulatelisttable> {

    /**
     * 获取用户有赞积分
     *
     * @param phone
     * @return
     */
    ResultBody getYouZanAccumulate(String phone);

    /**
     * 修改有赞积分
     *
     * @param phone
     * @param youZanAccumulate
     * @return
     */
    ResultBody updateYouZanAccumulate(String phone, String youZanAccumulate, String operateType);

    /**
     * 使用兑换积分
     *
     * @param shopId
     * @param accumulate
     * @param phone
     * @return
     */
    ResultBody exchange(String shopId, String accumulate, String phone,String goodsId);

}
